<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ include file="/commons/jsp/taglibs.jsp"%>
<%@taglib uri="http://www.framework.com/taglib" prefix="frame"%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
 <div style="width: 100%;text-align: right;height: 40px;"><input type="button" style="height: 30px;width: 80px;" value="打印" onclick="doPrint();"/></div>
  <!--startprint-->
	<body lang=ZH-CN style='tab-interval:21.0pt;text-justify-trim:punctuation'>

			<p class=MsoNormal align=center style='text-align:center'><span style='font-size:22.0pt;font-family:仿宋_GB2312'>竞标文件提交记录表<spanlang=EN-US><o:p></o:p></span></span></p>
            <div align="center">
			<table style="width:900px;">
				<tr>
					<th align="left">项目名称:</th>
					<td>${projectInfo.name}</td>
					<th>项目编号:</th>
					<td>${projectInfo.code}</td>
				</tr>
			</table>

			<table border="1px" cellspacing=0 cellpadding=0  style='width:900px; text-align:center'>
				<tr>
					<td style='width:30px;height:30px;text-align: center;'>
						序号
					</td>
					<td  style='text-align: center;width:100px;mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;mso-border-alt:solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt;height:32.5pt'>
						竞价单位全称
					</td>
					<td  style='text-align: center;width:60px;mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;mso-border-alt:solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt;height:32.5pt'>
						法人代表
					</td>
					<td style='text-align: center;width:70px;mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;mso-border-alt:solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt;height:32.5pt'>
						授权委托人
					</td>
					<td style='text-align: center;width:100px;mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;mso-border-alt:solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt;height:32.5pt'>
						联系人电话
					</td>
					<td style='text-align: center;width:150px;mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;mso-border-alt:solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt;height:32.5pt'>
						文件提交时间
					</td>
				</tr>
				
	  <c:forEach items="${projectBidList}" var="projectBid" varStatus="status">				
				<tr>
					<td style='width:37px;text-align: center;'>
						${status.index + 1}
					</td>
					<td style='text-align: center;width:166px;mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;mso-border-alt:solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt;height:32.5pt'>
						${projectBid.company}
					</td>
					<td  style='text-align: center;width:72px;mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;mso-border-alt:solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt;height:32.5pt'>
						${projectBid.userName}
					</td>
					<td  style='text-align: center;width:82px;mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;mso-border-alt:solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt;height:32.5pt'>
						${projectBid.consignor}
					</td>	
					<td  style='text-align: center;width:82px;mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;mso-border-alt:solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt;height:32.5pt'>
					    <c:choose>
						<c:when test="${projectBid.consignor !='' }">
			                 ${projectBid.consignorPhone}
		                </c:when>
		                <c:otherwise> 
		                    ${projectBid.userMobile}  
		                </c:otherwise>   
		                </c:choose> 
					</td>			
					<td style='text-align: center;width:102px;mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;mso-border-alt:solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt;height:32.5pt'>
						<fmt:formatDate value="${projectBid.bidTime}" pattern="yyy年MM月dd日 HH时mm分"/>
					</td>
				</tr>
		    </c:forEach> 
          </table>
     </div>
     
     <script type="text/javascript">
     $(function(){
    	 pagesetup_null();
    	 pagesetup_default();
     }); 

function doPrint() { 
	bdhtml=window.document.body.innerHTML; 
	sprnstr="<!--startprint-->"; 
	eprnstr="<!--endprint-->"; 
	prnhtml=bdhtml.substr(bdhtml.indexOf(sprnstr)+17); 
	prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr)); 
	window.document.body.innerHTML=prnhtml; 
	pagesetup_null();
	window.print(); 
}
function pagesetup_null(){
	var hkey_root,hkey_path,hkey_key
	hkey_root="HKEY_CURRENT_USER"
	hkey_path="SoftwareMicrosoftInternet ExplorerPageSetup"
	try{
	var RegWsh = new ActiveXObject("WScript.Shell")
	hkey_key="header" 
	RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"")
	hkey_key="footer"
	RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"")
	}catch(e){}
}

var hkey_root,hkey_path,hkey_key;
hkey_root="HKEY_CURRENT_USER";
hkey_path="\\Software\\Microsoft\\Internet Explorer\\PageSetup\\";


//网页打印时清空页眉页脚
function pagesetup_null() {
    try {
        var RegWsh = new ActiveXObject("WScript.Shell")
        hkey_key = "header"
        RegWsh.RegWrite(hkey_root + hkey_path + hkey_key, "")
        hkey_key = "footer"
        RegWsh.RegWrite(hkey_root + hkey_path + hkey_key, "")
    } catch (e) {}
}
function pagesetup_default() {
    try {
        var RegWsh = new ActiveXObject("WScript.Shell")
        hkey_key = "header"
        RegWsh.RegWrite(hkey_root + hkey_path + hkey_key, "&w&b页码，&p/&P")
        hkey_key = "footer"
        RegWsh.RegWrite(hkey_root + hkey_path + hkey_key, "&u&b&d")
    } catch (e) {
    }
}

</script>
     
</body>
</html>